// 引入 request 文件
import request from '@/utils/request'

// 以下 api 为博主项目示例，实际与项目相匹配
// 微信登录
export const wxlogin = (params) => {
    return request({
        url: '/wxapi/wxlogin',
        method: 'post',
        data: params
    })
}

// 医生列表
export const getDoctorList = (data) => {
    return request({
        url: '/hospital/doctor/wechat-home-doctor-list',
        method: 'post',
		data:data
    })
}

// 门店列表
export const getShopList = () => {
    return request({
        url: '/hospital/shop/wechat-shop-list',
        method: 'get'
    })
}

// 医生查询
export const searchDoctor = (params) => {
    return request({
        url: '/hospital/doctor/wechat-doctor-list',
        method: 'post',
        data: params
    })
}

// 医生详情
export const getDoctorDetail = (params) => {
    return request({
        url: '/hospital/doctor/wechat-doctor-detail',
        method: 'post',
        data: params
    })
}

// 预约挂号
export const submitOrder = (params) => {
    return request({
        url: '/hospital/doctor/wechat-submit-order',
        method: 'post',
        data: params
    })
}

// 查询患者
export const patientList = (params) => {
    return request({
        url: '/hospital/patient/wechat-patient-list',
        method: 'post',
        data: params
    })
}

// 新增患者
export const patientAdd = (params) => {
    return request({
        url: '/hospital/patient/wechat-patient-add',
        method: 'post',
        data: params
    })
}

// 新增医生
export const doctorAdd = (params) => {
    return request({
        url: '/hospital/doctor/wechat-doctor-add',
        method: 'post',
        data: params
    })
}

// 医生问诊记录
export const doctorRecordList = (params) => {
    return request({
        url: '/hospital/record/wechat-doctor-record-list',
        method: 'post',
        data: params
    })
}

// 患者问诊记录
export const patientRecordList = (params) => {
    return request({
        url: '/hospital/order/wechat-patient-record-list',
        method: 'post',
        data: params
    })
}

// 我的预约医生
export const myOrderDoctorList = (params) => {
    return request({
        url: '/hospital/order/wechat-doctor-order-list',
        method: 'post',
        data: params
    })
}

// 我的预约患者
export const myOrderPatientList = (params) => {
    return request({
        url: '/hospital/order/wechat-patient-order-list',
        method: 'post',
        data: params
    })
}

// 查询是否提交医生档案
export const searchDoctorRecord = (params) => {
    return request({
        url: '/hospital/doctor/wechat-doctor-add-record',
        method: 'post',
        data: params
    })
}


// 药食同源
export const prodlist = (data) => {
    return request({
        url: '/shop/prod/prodlist',
        method: 'get',
		data:data
    })
}
